<?php

namespace app\api\service;

use think\facade\Db;

class IntegralIntervalService
{
    public static function getIntegralIntervalList($store_id)
    {
        $integralIntervalList = Db::name('integral_interval')
                                  ->field('interval_name,start_interval,end_interval')
                                  ->where(['store_id' =>$store_id, 'status' => 1])
                                  ->order('end_interval','asc')
                                  ->select();

        return $integralIntervalList;
    }
}